<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Flashgame
 * @version    $Id: Edit.php 4854 2010 YouNet $
 * @author     To Anh
 */
                     
class Flashgame_Form_Edit extends Flashgame_Form_Create
{
  public $_error = array();
  protected $_item;

  public function getItem()
  {
    return $this->_item;
  }

  public function setItem(Core_Model_Item_Abstract $item)
  {
    $this->_item = $item; 
    return $this;
  }
  
  public function init()
  {
    parent::init();
    $this->setTitle('Edit Game')
         ->setDescription('Edit your game below, then click "Save Changes" to save your game.');
    $this->type->setRequired(TRUE);
    $this->submit->setLabel('Save Changes');    
  }
}